package com.design.softwaredesign.mapper;

import com.design.softwaredesign.entity.Donation;
import com.design.softwaredesign.entity.DonationLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BackDonationMapper {
    public List<Donation> getDonationNoArrival(@Param("query") String query);

    void changeAcceptState(@Param("nowTime") String nowTime, @Param("donationId") String donationId);

    void changeTransationState(@Param("nowTime") String nowTime, @Param("donationId") String donationId);

    void changeArrivalState(@Param("nowTime") String nowTime, @Param("donationId") String donationId);

    DonationLog getDonationTimestamp(@Param("donationId") String donationId);

    int deleteDonationById(@Param("donationId") String donationId);

    void deleteDonationImages(@Param("donationId") String donationId);

    List<Donation> getDonationArrival(@Param("query") String query);
}
